# 学生demo
class Student:
    className = '这是厚朴 牛逼 四班'

    def __init__(self, name, age, score):
        self.name = name
        self.age = age
        self.score = score

    def show(self):
        print(f'我叫{self.name}，今年{self.age}岁了，得了{self.score}分')


if __name__ == '__main__':
    xiaoliu = Student('小刘', 23, 99)
    xiaoliu.className = '这是厚普1班'
    xiaoming = Student('小明', 27, 89)
    xiaoming.className = '这是厚普2班'

    xiaohong = Student('小红', 13, 19)
    xiaohong.className = '这是厚普1班'
    xiaolv = Student('小绿', 37, 49)
    xiaolv.className = '这是厚普2班'

    stuList = [xiaoliu, xiaoming, xiaohong, xiaolv]

    # 查看类型
    print(type(xiaoming))
    print(type(xiaoliu))
    print(type(xiaohong))
    print(type(xiaolv))
    for stu in stuList:
        print('这是{0}班'.format(stu.className))
        stu.show()
